package gold.digger;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by fanzhenyu02 on 2020/6/27.
 * common problem solver template.
 */
public class LC478 {
    public long startExecuteTime = System.currentTimeMillis();


    class Solution {
        double rad, xc, yc;

        public Solution(double radius, double x_center, double y_center) {
            rad = radius;
            xc = x_center;
            yc = y_center;
        }

        public double[] randPoint() {
            double d = rad * Math.sqrt(Math.random());
            double theta = Math.random() * 2 * Math.PI;
            return new double[]{d * Math.cos(theta) + xc, d * Math.sin(theta) + yc};
        }
    }

    public void run() {
        Solution solution = new Solution(1,2,3);
        System.out.println(solution.toString());
    }

    public static void main(String[] args) throws Exception {
        LC478 an = new LC478();
        an.run();

        System.out.println("\ncurrent solution total execute time: " + (System.currentTimeMillis() - an.startExecuteTime) + " ms.");
    }
}
